package com.managertrade.service.impl;

import com.managertrade.dto.SysRoleDTO;
import com.managertrade.dao.mysql.entity.SysRole;

import java.util.List;
import java.util.Map;

public interface RoleService {
    List<SysRole> getAllRoles();
    void addRole(SysRoleDTO role);
    void updateRole(SysRoleDTO role);
    void deleteRole(Long id);
    Map<String, Object> getRolePermissions(Long roleId);
     void updateRolePermissions(Long roleId, List<Long> permissionIds);
    List<SysRole> findSysRoleByUser(Long id);
}
